#include<iostream>
#include<string>
#include<map>
using namespace std;
typedef long long LL;
int n, m;
int main()
{
	cin >> n >> m;
	LL ans = 0;
	for (int i = n; i <= m; i++) {
		LL sum = 1;
		for (int j = 0; j < i; j++) {
			sum *= (m - j);
		}
		cout << sum / m << endl;
		ans += sum / m;
	}
	cout << ans << endl;
	return 0;
}